package com.studyhub.api.center.model;

import com.baomidou.mybatisplus.annotation.TableName;

import com.studyhub.api.base.BaseEntity;
import com.studyhub.api.center.enums.ExamAnswerLogEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Null;

/**
 * 考试作答日志实体类
 * 记录学生在考试过程中的所有操作和行为日志
 * 包括开始答题、提交试卷、答题进度、监控行为等
 * 用于考试过程监控、数据统计和学术诚信监管
 * 
 * @author yangwf
 */
@Getter
@Setter
@TableName("ed_exam_answer_log")
@Schema(name = "ExamAnswerLog", description = "考试作答日志")
public class ExamAnswerLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

      private Integer id;

    @Schema(description = "考试id")
    private Integer examId;

    @Schema(description = "学生id")
    private Integer studentId;
    @Schema(description = "班级id")
    private Integer classId;

    @Null(message = "状态不能为考")
    @Schema(description = "状态：0:开始、2：交卷")
    private ExamAnswerLogEnum status;

    @Schema(description = "状态信息")
    private String info;
}
